From 5a7e47a73d26bea6bc2035901fab9271b41b95a4 Mon Sep 17 00:00:00 2001 From: Andres Lagar-Cavilla Date: Thu, 24 Nov 2011 15:20:57 +0000 Subject: [PATCH] x86/mm: change return code for log-dirty disabling Disabling log dirty mode in HAP always returns -EINVAL. Make it return the correct rc on success. Signed-off-by: Andres Lagar-Cavilla Signed-off-by: Tim Deegan Committed-by: Tim Deegan --- xen/arch/x86/mm/hap/hap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/x86/mm/hap/hap.c b/xen/arch/x86/mm/hap/hap.c index 9f6b990c2a..008d151876 100644 --- a/xen/arch/x86/mm/hap/hap.c +++ b/xen/arch/x86/mm/hap/hap.c @@ -709,6 +709,8 @@ int hap_domctl(struct domain *d, xen_domctl_shadow_op_t *sc, return rc; case XEN_DOMCTL_SHADOW_OP_GET_ALLOCATION: sc->mb = hap_get_allocation(d); + /* Fall through... */ + case XEN_DOMCTL_SHADOW_OP_OFF: return 0; default: HAP_ERROR("Bad hap domctl op %u\n", sc->op); -- 2.30.2